import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'

import Recommend from 'components/recommend/recommend'  /*推荐*/
import Search from 'components/search/search'/*搜索*/
import Singer from 'components/singer/singer'/*歌手*/
import Rank from 'components/rank/rank'/*排行*/

import SingerDetail from 'components/singer-detail/singer-detail'/*歌手详情*/

Vue.use(Router)

export default new Router({
  routes: [
    {
        path:'/',
        redirect:'Recommend'
    },
    {
      path: '/Recommend',
      component: Recommend
    },
    {
      path: '/Search',
      component: Search
    },
    {
      path: '/Singer',
      component: Singer,
      children:[
        {
          path: ':id',
          component: SingerDetail
        }
      ]
    },
    {
      path: '/Rank',
      component: Rank
    },
  ]
})
